<style type="text/css">
a.dwloader {color:gray !important;cursor:auto}
</style>
<form class="normal_form" form-role="dialog" style="padding-top:20px;margin-bottom:0;" autocomplete="off">
    <div class="row">
        <div class="field_text">下载：</div>
        <div class="labelrow">
            <a data-key="dqrcode" style="color:#0f86ea">打包二维码</a>
        </div>
        
    </div>
    <div class="row form-footer-bar">
        <p class="colortip"></p>
        <button class="btn" role="btn-cancel">取消</button>
    </div>
</form>
<script type="text/javascript">
Core.DialogForm = function(){
	$.ajax({type : "POST",dataType: "json",cache : false, url : "{$_G['_mc_'] ?? ''}/loadqr?r="+Math.random(),data : p,success: function(json){
        /*
	   try{
		   if (data['state'] == 'y'){
			   $("#datalist").datagrid('reload');$(form).dialogClose();
		   } else {
			   form.find(":button").removeAttr('disabled');form.find("p.colortip").html(data['msg']);return false;
		   }
	   }catch(e){form.find(":button").removeAttr('disabled');form.find("p.colortip").html('数据提交失败!');return false;}
       */
	}});
	return false;
}
$(document).ready(function(){
    $('a[data-key="dqrcode"]').click(function(){
        if ($(this).hasClass('dwloader')) return;
        $(this).addClass('dwloader');
        $(this).text('请稍候,打包中...');
        Core.DialogForm();
    });
});
</script>